import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import pinia from '@/store'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import SecondLevel from '@/pages/discovery/components/SecondLevel.vue'
// import { useRouter } from 'vue-router'
// const router = useRouter()
import router from '@/router/index'
import '@/mock/yang/index'

import '@/mock'

const app=createApp(App)
app.component('SecondLevel',SecondLevel)
app.use(ElementPlus)
app.use(router)
app.use(pinia)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.mount('#app')



app.use(ElementPlus)

